package cn.lny.org.mapper;

import cn.lny.org.domain.Department;
import cn.lny.org.query.DepartmentQuery;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface DepartmentMapper {
    void add(Department department);
    void delete(Long id);
    void update(Department department);
    Department findOne(Long id);
    List<Department> findAll();
    //查询总条数
    Long queryCount();
    List<Department> queryDate(DepartmentQuery departmentQuery);
}
